//
//  VoiceManager.h
//  keyboard
//
//  Created by 遇水 on 16/3/12.
//  Copyright © 2016年 遇水. All rights reserved.
//

#import <Foundation/Foundation.h>

@class VoiceManager;
@protocol VoiceManagerDelegate <NSObject>



@end


@interface VoiceManager : NSObject

@property (nonatomic, assign) id<VoiceManagerDelegate>    delegate;

@property (nonatomic, copy) NSString    *urlString;

+ (instancetype)sharedVoiceManager;

/**
 *  播放录音
 *
 *  @param URLString <#URLString description#>
 */
- (void)playVoiceWithURLString:(NSString *)URLString;

/**
 *  结束播放
 */
- (void)stopVoicePlayer;

/**
 *  清除缓存
 */
- (void)cleanVoiceCache;



@end
